package com.dashang.services.impl;

import java.util.List;

import org.apache.log4j.Logger;

import com.dashang.dao.IUserDao;
import com.dashang.entity.UserInfo;
import com.dashang.services.IUserServices;

/**
 *
 * 用户服务实现
 *
 * @author 陈兴
 * @version [版本号, 2011-8-24]
 * @see [相关类/方法]
 * @since [产品/模块版本]
 */
public class UserServicesImpl implements IUserServices
{

    private static final Logger log = Logger.getLogger(UserServicesImpl.class);

    /**
     * 用户查询接口
     */
    private IUserDao userDao;

    /**
     *
     * 查询用户信息
     *
     * @param userInfo
     * @return
     */
    public UserInfo queryUser(UserInfo userInfo)
    {
        return userDao.queryUser(userInfo);
    }

    /**
     *
     * <一句话功能简述> <功能详细描述>
     *
     * @return
     * @see [类、类#方法、类#成员]
     */
    public List<UserInfo> queryUserWithRF(UserInfo userInfo)
    {
        List<UserInfo> result = userDao.queryUserWithRF(userInfo);

        log.debug("UserServicesImpl.queryUserWithRF:" + userInfo);
        return result;

    }

    public IUserDao getUserDao()
    {
        return userDao;
    }

    public void setUserDao(IUserDao userDao)
    {
        this.userDao = userDao;
    }
}
